package way.learning.zz.listener;


import way.learning.zz.event.FileAddedEvent;
import way.learning.zz.event.FileModifiedEvent;
import way.learning.zz.event.FileRemovedEvent;

/**
 * FileAddedEvent / FileRemovedEvent / FileModifiedEvent 的监听器接口
 *
 */
public interface DirectoryListener extends Rdp4jListener {

    /**
     * Invoked each time a new file is added in the PolledDirectory.
     */
    void fileAdded(FileAddedEvent event) throws InterruptedException;

    /**
     * Invoked each time a file is removed from the PolledDirectory.
     */
    void fileRemoved(FileRemovedEvent event) throws InterruptedException;

    /**
     * Invoked each time a file in the PolledDirectory is modified.
     */
    void fileModified(FileModifiedEvent event) throws InterruptedException;
}
